<%= form_with model: @hat, url: update_in_place_hat_path(@hat), method: :post do |f| %>
  <div class="labelled_grid">
    <%= f.label :user_id, "User" %>
    <%= styled_user_link @hat.user %>

    <%= f.label :hat, "Hat" %>
    <%= f.text_field :hat %>
  </div>

  <div class="row">
    <%= f.submit "Edit In-Place", formaction: update_in_place_hat_path(@hat) %>
    <%= f.submit "Doff & Create", formaction: update_by_recreating_hat_path(@hat) %>
  </div>
<% end %>
